//package com.ruoyi.common.config;
//
//import com.xxl.job.core.executor.impl.XxlJobSpringExecutor;
//import lombok.RequiredArgsConstructor;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//@RequiredArgsConstructor
//public class XxlJobConfig {
//
//    private final XxlJobProperties xxlJobProperties;
//
//    @Bean
//    public XxlJobSpringExecutor xxlJobExecutor() {
//        XxlJobSpringExecutor xxlJobSpringExecutor = new XxlJobSpringExecutor();
//        xxlJobSpringExecutor.setAdminAddresses(xxlJobProperties.getAdminAddresses());
//        xxlJobSpringExecutor.setAppname(xxlJobProperties.getAppname());
////        xxlJobSpringExecutor.setAddress(address);
////        xxlJobSpringExecutor.setIp(ip);
//        xxlJobSpringExecutor.setPort(xxlJobProperties.getPort());
//        xxlJobSpringExecutor.setAccessToken(xxlJobProperties.getAccessToken());
//        xxlJobSpringExecutor.setLogPath(xxlJobProperties.getLogPath());
//        xxlJobSpringExecutor.setLogRetentionDays(xxlJobProperties.getLogRetentionDays());
//
//        return xxlJobSpringExecutor;
//    }
//}
